package com.yl.ifanr.db;

public class RssItemBean {
	public static final String TITLE = "title";
	public static final String PUBDATE = "pubdate";
	private int id ;
	private String title = null;
	private String description = null;
	private String content = null;
	private String link = null;
	private long lastBuildDate = 0;
	private long pubdate = 0;
	
	public RssItemBean()
	{
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public long getLastBuildDate() {
		return lastBuildDate;
	}

	public void setLastBuildDate(long lastBuildDate) {
		this.lastBuildDate = lastBuildDate;
	}
	public long getPubdate() {
		return pubdate;
	}

	public void setPubdate(long pubdate) {
		this.pubdate = pubdate;
	}

	/**
	 * 取标题固定个数字符
	 */
	public String toString()
	{
		if (title.length() > 20)
		{
			return title.substring(0, 42) + "...";
		}
		return title;
	}
}
